/**
 * 
 */
package cu.ds.logicalsync.fytasrealm.communication.event;

import java.util.EventObject;
import java.util.Set;

import cu.ds.logicalsync.fytasrealm.communication.model.PeerInfo;

/**
 * @author r.vashira
 *
 */
@SuppressWarnings("serial")
public class WorldStatusEvent extends EventObject {
	private Set<PeerInfo> participants;
	private PeerInfo requestor;
	private PeerInfo host;

	public WorldStatusEvent(Object source, Set<PeerInfo> participants) {
		super(source);
		this.participants = participants;
	}

	/**
	 * @return the participants
	 */
	public Set<PeerInfo> getParticipants() {
		return participants;
	}

	/**
	 * Who make the request
	 * @return the requestor
	 */
	public PeerInfo getRequestor() {
		return requestor;
	}

	/**
	 * Who is host of the World
	 * @return the host
	 */
	public PeerInfo getHost() {
		return host;
	}
	
	
}
